<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<body>

</body>
<script>
    var n = parseInt(window.prompt('请输入一个数'))
    if (!n) {
        document.write('gyufgu')


    }
    var num = 1;
    for (let i = 0; i < n; i++) {
        num *= 2
    }
    console.log(num);
    document.write(num)
  // console.log(Math.pow(3, 2));

</script>

</html>